/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package at.fhj.util;

/**
 *
 * @author gerhard
 */
public class TypeUtil {


    public static <T> T as(Class<T> clazz, Object obj)
    {
        return clazz.isAssignableFrom(obj.getClass()) ? (T) obj:null;
    }
}
